package starkuz.smartpages.model;

import java.util.Date;

/**
 * пользователь системы
 */

public class User {

    //Статусы:
    public final static String INACTIVE_STATUS = "inactive";
    public final static String FREE_STATUS = "free";
    public final static String PAYED_STATUS = "payed";

    //Роли:
    public final static String ADMIN = "admin";
    public final static String PROJECT_OWNER = "project_owner";
    public final static String BOOSTER = "booster"; //рекламщик
    public final static String COPYWRITER = "copywriter"; //копирайтер
    public final static String DESIGNER = "designer"; //дизайнер

    private Long id;
    private String name;
    private String login;
    private String password;
    private String role;
    private String status; //TODO: добавить в DAO
    private String market;  //выбранный тип деятельности при регистрации
    private Date lastVisitDate;
    private Date registrationDate;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMarket() {
        return market;
    }

    public void setMarket(String market) {
        this.market = market;
    }

    public Date getLastVisitDate() {
        return lastVisitDate;
    }

    public void setLastVisitDate(Date lastVisitDate) {
        this.lastVisitDate = lastVisitDate;
    }

    public Date getRegistrationDate() {
        return registrationDate;
    }

    public void setRegistrationDate(Date registrationDate) {
        this.registrationDate = registrationDate;
    }
}
